﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0034)http://card.jd.com/card-index.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
    
    <title>Trò chơi nạp tiền - Jingdong Mall</title>
    <style type="text/css">
        html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,address,big,cite,code,del,em,font,img,ins,small,strong,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend{margin:0;padding:0;}ol,ul{list-style:none;}:focus{outline:0;}a img{border:0;}img{vertical-align:middle;}table{empty-cells:show;}ins{text-decoration:none;}del{text-decoration:line-through;}em{font-style:normal;}
        button::-moz-focus-inner,
        input[type="reset"]::-moz-focus-inner,
        input[type="button"]::-moz-focus-inner,
        input[type="submit"]::-moz-focus-inner,
        input[type="file"]>input[type="button"]::-moz-focus-inner{border:none;padding:0;}
        .fl{float:left;}.fr{float:right;}.fn{float:none;}.al{text-align:left;}.ac{text-align:center;}.ar{text-align:right;}
        .clr{display:block;overflow:hidden;clear:both;height:0;line-height:0;font-size:0;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{display:inline-table;}/* Hides from IE-mac \*/*html .clearfix{height:1%;}.clearfix{display:block;}/* End hide from IE-mac */*+html .clearfix{min-height:1%;}.overflow{overflow:hidden;}
        .form label,.form input,.form select,.form textarea,.form button,.form .label{float:left;font-size:12px;}
        .block{display:block;overflow:hidden;cursor:pointer;}
        .cardhide{display:none;}
        .invisible{visibility:hidden;}
        .tab{overflow:hidden;zoom:1;}
        .tab li,.tab a,.tab-item{float:left;cursor:pointer;text-align:center;}
        .btn-img,.button{display:inline-block;margin:0;padding:0;border:0;text-align:center;cursor:pointer;}
        .btn-text{margin:0;padding:0;text-align:center;cursor:pointer;}
        body{font:12px/150% Arial,Verdana,"\5b8b\4f53";color:#333;background:#fff;_background-image:url(about:blank);_background-attachment:fixed;}
        h1{font:20px "microsoft yahei","\5b8b\4f53";}
        h2,h3{font-size:14px;}
        h4,h5,h6{font-size:12px;}
        a:link,a:visited{color:#005EA7;text-decoration:none;}
        a:hover{color:#C00;text-decoration:underline;}
        a:active{color:#900;}
            /*game*/
        .game .item .button,.check-price li .button{background:url(http://misc.360buyimg.com/201007/skin/df/i/btn2012062501.png) no-repeat;}
        .game{width:203px;height:134px;padding:5px 0 0 5px;}
        .game .tab{overflow:visible;height:21px;border-bottom:1px solid #ddd;}
        .game .tab li{float:left;width:62px;height:20px;margin-right:3px;border:solid #DEDEDE;border-width:1px 1px 0 1px;background: url(http://misc.360buyimg.com/lib/skin/2012/i/20111221C.png) repeat-x 0 -32px #EFEFEF;line-height:21px;text-align:center;color:#005EAB;}
        .game .tab .curr{height:21px;background:#fff;}
        .game .item{padding-top:5px;overflow:hidden;width:203px;}
		.game .fore23{font-family:tahoma;font-size:12px;}
		.game .fore23 label{width:37px;height:10px;}
        .game .item:after{content:'\20';display:block;clear:both;}
        .game .fore3 label{width:37px;float:left;height:10px;}
		.game .qq .fore23 label{width:37px;float:left;height:10px;}
        .game .item select{width:85px;height:21px;font-family:"\5b8b\4f53";}
        .game .item .button{float:left;width:60px;height:21px;line-height:21px;background-position:0px 0px;margin-right:5px;}
        .game .item .promotwords{line-height:21px;display:none;}
        .game .item .more{padding-left:0.6em;line-height:20px;color:#005EAA;}
        .game .item .more a{color:#005EAA;}
		.game .item .t-name{margin-right:3px;vertical-align:middle;height:auto;width:auto;float:none;}
		.game .qq .fore23 .t-name{float:none;height:auto;width:auto;}
		.game .item .radio{float:none;vertical-align:middle;}
		.game .item .price{float:left;color:#cb0101;padding-left:0.6em;line-height:20px;}
        .game .play{overflow:hidden;padding-top:10px;height:80px;}
        .game .play ul{width:188px;overflow:hidden;margin:0 auto;}
        .game .play li{width:80px;float:left;height:80px;_height:81px;overflow:hidden;}
        .game .play li a{width:80px;height:80px;_height:81px;}
        .game .play li.img-1{padding:0 8px 0 3px;background:url(http://misc.360buyimg.com/lib/skin/2012/i/li-bg.jpg) no-repeat right top;}
		.game .play li.img-2{padding: 0 3px 0 8px;}
        .game .play li.img-3{}
        .game .play .more-play{float:left;}
        .game .more-play a{color:#005ea6;}
            /*check-price*/
        .check-price{width:193px;height:134px;padding:0 5px;font-family:verdana;}
        .check-price .game-name{height:21px;margin-bottom:10px;padding:0 5px;border-bottom:1px solid #ddd;line-height:21px;}
        .check-price .game-name h4{float:left;font-weight:normal;}
        .check-price .game-name h4 span{color:#D10000;}
        .check-price .game-name a.re-select{float:right;color:#005EAA;}
        .check-price li{height:21px;margin-bottom:10px;padding:0 5px;line-height:21px;}
        .check-price li span{font-weight:bold;color:#D10000;}
        .check-price li .button{float:right;width:45px;height:21px;margin-left:8px;line-height:21px;background-position:-61px 0;text-align:center;}
        .root61 .game{width:294px;}
        .root61 .game .tab li{width:69px;}
        .root61 .game .item{width:255px;}
        .root61 .game .item select{width:135px;}
        .root61 .game .fore3 label{display:block;float:left;width:37px;}
        .root61 .check-price{width:264px;}
        .root61 .game .play ul{width:295px;}
        .root61 .game .play li.img-1{padding:0 8px;}
        .root61 .game .play li.img-2{padding:0 8px 0 8px;background:url(http://misc.360buyimg.com/lib/skin/2012/i/li-bg.jpg) no-repeat right top;}
		.root61 .game .play li.img-3{padding:0 0px 0 8px;}
		.root61 .game .item .promotwords{display:block;line-height:21px;}
		.root61 .game .qq .fore23 label{display:block;width:37px;float:left;height:10px;}
		.root61 .game .qq .fore23 .t-name{float:none;display:inline;height:auto;width:auto;}
        .hot{color:red;}

		select.hot-select, option.hot, select.hot-select option.hot {
			color: red;
		}
		select.hot-select option{color:#404040;}
	</style>
	<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
	<script type="text/javascript">
		/**Thay ??i s?n ph?m hi?n ?ang ???c ch?n n?u ???c ?? ngh? cài ??t cho màu ??*/
		function changeProduct(){
			var gameObj = $("#game_slt_game");
			var selectObj = gameObj.find("option:selected");
			var hot = selectObj.attr("class");
			if(hot=="hot"){
				gameObj.addClass("hot-select");
			}else{
				gameObj.removeAttr("class");
			}
		}
		jQuery(function(){
			changeProduct();
		});
	</script>
</head>
<body class="root61">
<script>(function(b){if(b)document.getElementsByTagName("body")[0].className = ""})(window.location.href.match(/\=gameqq/))</script>
<script type="text/javascript">function simple_tabs(thisObj,Num){if(thisObj.className=="curr"){return;}
    var tabObj=thisObj.parentNode.id;var tabList=document.getElementById(tabObj).getElementsByTagName("li");for(var i=0,len=tabList.length;i<len;i++){if(i==Num){thisObj.className="curr";document.getElementById(tabObj+"-con-"+i).style.display="block";}else{tabList[i].className="";document.getElementById(tabObj+"-con-"+i).style.display="none";}}}
</script>
<div id="card_form" class="game form">
    <ul id="gametab" class="tab">
		
        <li class="curr" onmouseover="simple_tabs(this, 0);" id="styleGame">Dianka</li>
        <li onmouseover="simple_tabs(this, 1);" id="styleQQ">QQ</li>
		<li onmouseover="simple_tabs(this, 2);">Trang du lịch</li>
    </ul>

    <div class="card" id="gametab-con-0">
        <div class="item fore1">
            <label>Trò chơi：</label>
            <select id="game_slt_game" onchange="initGamePair(this);changeEverything();changeProduct();">

            <option value="C-siêu Dancer">C-siêu Dancer</option><option value="C">C</option>
			<option value="C-Cross Fire" class="hot">C-Cross Fire</option>
			<option value="C-Huyền thoại của thế giới" class="hot">C-Huyền thoại của thế giới</option>
			<option value="D-DNF">D-DNF</option>
			<option value="G-Guangyu thẻ">G-Guangyu thẻ</option>
			<option value="J-Võ Lâm Truyền Kỳ trên thế giới">J-Võ Lâm Truyền Kỳ trên thế giới</option>
			<option value="J-đường phố bóng rổ">J-đường phố bóng rổ</option>
			<option value="J-Jinshan thẻ">J-Jinshan thẻ</option>
			<option value="J-nghe thử">J-Audition </option>
			<option value="J-Ninetowns thẻ">J-Ninetowns thẻ</option>
			<option value="J-nguồn nhân lực cấu hình" class="hot">J-nguồn nhân lực cấu hình</option>
			<option value="J-Giant">J-Giant</option>
			<option value="J-Chun thẻ card">J-Chun thẻ card</option>
			<option value="K-KongZhong thẻ">K-KongZhong thẻ</option>
			<option value="K-Pocket Journey">K-Pocket Journey</option>
			<option value="L-Màu xanh Cảng Card">L-Màu xanh Cảng Card</option>
			<option value="L-Old K trò chơi">L-Old K trò chơi</option>
			<option value="L-Rồng Valley" class="hot">L-Rồng Valley</option>
			<option value="M-Ảo Zhu Xian">M-Ảo Zhu Xian</option>
			<option value="M-Mimi Ka">M-Mimi Ka</option>
			<option value="M-World of Warcraft" class="hot">M-World of Warcraft</option>
			<option value="M-yêu tinh">M-yêu tinh</option>
			<option value="P-KartRider">P-KartRider</option>
			<option value="Q-QQ tưởng tượng thế giới" class="hot">Q-QQ tưởng tượng thế giới</option>
			<option value="Q-QQ game">Q-QQ game</option>
			<option value="Q-Kirin thẻ">Q-Kirin thẻ</option>
			<option value="Q-Từ nơi mà các thẻ">Q-Từ nơi mà các thẻ</option>
			<option value="QQ Tốc độ">QQ Tốc độ</option>
			<option value="QQ Hyun nhảy">QQ Hyun nhảy</option>
			<option value="R-Mir">R-Mir</option>
			<option value="R-Yulgang">R-Yulgang</option>
			<option value="R-Mọi người đều đậu">R-Mọi người đều đậu</option>
			<option value="R-Tất cả mọi người Card Game">R-Tất cả mọi người Card Game</option>
			<option value="S-Mummy">S-Mummy</option>
			<option value="S-Mythical lục địa">S-Mythical lục địa</option>
			<option value="S-Shanda thẻ">S-Shanda thẻ</option>
			<option value="S-Thẻ Sohu tour du lịch">S-Thẻ Sohu tour du lịch</option>
			<option value="T-Xe tăng của thế giới" class="hot">T-Xe tăng của thế giới</option>
			<option value="T-rồng 3" class="hot">T-rồng 3</option>
			<option value="W-rồng" class="hot">W-rồng</option>
			<option value="W-rồng">W-rồng</option>
			<option value="W-Perfect thẻ">W-Perfect thẻ</option>
			<option value="W-hỏi">W-hỏi</option>
			<option value="W-Legend of Martial Arts">W-Legend of Martial Arts</option>
			<option value="X-Dragon Sword">X-Dragon Sword</option>
			<option value="X-StarCraft 2" class="hot">X-StarCraft 2</option>
			<option value="Y-Heroes Alliance" class="hot">Y-Heroes Alliance</option>
			<option value="Y-Một thẻ tiền">Y-Một thẻ tiền</option>
			<option value="Y-Rồng trong ngày">Y-Rồng trong ngày</option>
			<option value="Z-Blizzard thẻ">Z-Blizzard thẻ</option>
			<option value="Z-Journey">Z-Journey</option>
			<option value="Z-Journey 2" class="hot">Z-Journey 2</option>
			<option value="Z-Zhu Xian 2">Z-Zhu Xian 2</option>
			<option value="Z-Cơn thịnh nộ của các vị thần">Z-Cơn thịnh nộ của các vị thần</option>
			</select>
			<span class="more"><a href="http://game.jd.com/gameIndex.html" target="_blank">xem thêm</a></span>
        </div>
        <div class="item fore2">
            <label>Mệnh giá：</label>
            <select id="game_slt_pair" onchange="changeEverything()">

            <option value="10 nhân dân tệ">10 nhân dân tệ</option>
			<option value="30 nhân dân tệ">30 nhân dân tệ</option>
			<option value="50元">50 nhân dân tệ</option><option value="100元">100 nhân dân tệ</option></select>
			<div class="price" id="game_price_div">￥27.90</div>
        </div>
		<div class="item fore23">
             <label></label>
             <div class="fl" id="game_pay_type_div">
			 <input type="radio" id="1005500945" name="gamePayTypeRadio" class="radio" value="1005500945" checked="checked"
			 onclick="modifyPrice(this)" price="￥27.90"><label class="t-name" for="1005500945">trực tuyến Recharge</label></div>
        </div>
        <div class="item fore3">
            <label></label>
			<input type="button" class="button" value="Now" title="Sạc bay giờ" 
			onclick="goToBuy(&#39;gamePayTypeRadio&#39;)">
            <span class="promotwords" id="promotwords-card">
			<a href="http://sale.360buy.com/act/eVxzWKZrgu.html" target="_blank">điểm? Chứng từ ? Spree ? nhanh tem！</a></span>
        </div>
    </div>
    <div class="qq cardhide" id="gametab-con-1">
        <div class="item fore1">
            <label>Chăn nuôi：</label>
            <select id="qq_slt_type" onchange="initQqPair(this);changeEverything()">

            <option value="Q" class="hot">Q</option><option value="Q Kênh tiền tệ nạp tiền 2">Q Kênh tiền tệ nạp tiền 2</option>
			<option value="QQ bộ">QQ bộ</option>
			<option value="QQ Blue Diamond">QQ Blue Diamond</option><option value="QQ kim cương màu xanh lá cây ">QQ kim cương màu xanh lá cây </option>
			<option value="QQ Black Diamond">QQ Black Diamond</option><option value="QQ Red Diamond">QQ Red Diamond</option>
			<option value="QQ kim cương màu vàng">QQ kim cương màu vàng</option>
			<option value="QQ thành viên">QQ thành viên</option></select>
        </div>
        <div class="item fore2">
            <label>Mệnh giá：</label>
            <select id="qq_slt_pair" onchange="changeEverything()">

            <option value="1 t?（Có th? ch?n s? l??ng）">1 tệ（Có thể chọn số lượng）</option>
			<option value="30 t?">30 nhân dân tệ</option><option value="60元">60 nhân dân tệ</option></select>
			<span class="price" id="qq_price_div">￥0.93</span>
        </div>
        <div class="item fore23">
             <label></label>
             <div class="fl" id="qq_pay_type_div"><input type="radio" id="1001544920" name="qqPayTypeRadio" class="radio" 
			 value="1001544920" checked="checked" onclick="modifyPrice(this)" price="￥0.93">
			 <label class="t-name" for="1001544920">trực tuyến Recharge</label></div>
        </div>
        <div class="item fore3">
            <label></label>
			<input type="button" class="button" value="S?c bay gi?" title="Now" 
			onclick="goToBuy(&#39;qqPayTypeRadio&#39;)">
            <span class="promotwords" id="promotwords-qq">
			<a href="http://sale.360buy.com/act/eVxzWKZrgu.html" target="_blank">điểm? Chứng từ ? Spree ? nhanh tem！</a></span>
        </div>
    </div>
		<div class="play cardhide" id="gametab-con-2">
        <ul>
        <li class="img-1"><a href="http://wan.jd.com/yeyou/play.html?gameId=16&gateWayId=4831" target="_blank">
		<img src="rBEQWFEHgLsIAAAAAAAk4gYnOIAAAAVjwCunHkAACT6635.jpg" width="80" height="80"></a></li>
		<li class="img-2"><a href="http://wan.jd.com/yeyou/play.html?gameId=15&gateWayId=2" target="_blank"
		<img src="rBEQWVEwB-0IAAAAAAAOCpIlGyQAABFkgBsNkUAAA4i485.jpg" width="80" height="80"></a></li>
		<li class="img-3"><a href="http://wan.jd.com/yeyou/play.html?gameId=35&gateWayId=10001" target="_blank">
		<img src="rBEQWFEtbc4IAAAAAAAzsaz9aJ0AABFmQD3JgQAADPJ393.jpg" width="80" height="80"></a></li></ul>
    </div>
</div>
<div id="game_result" class="check-price cardhide">
    <div class="game-name">
        <a href="javascript:direct('1');" class="re-select">tái tranh cử</a><h4></h4>
    </div>
    <div class="con">
        <ul id="game_result_detail">

        </ul>
    </div>
</div>
<!--dot-card end-->
<div id="qq_result" class="check-price cardhide">
    <div class="game-name">
        <a href="javascript:direct('2');" class="re-select">tái tranh cử</a><h4></h4>
    </div>
    <div class="con">
        <ul id="qq_result_detail">

        </ul>
    </div>
</div>
<!--q-coins end-->
<script type="text/javascript">

//Nhan viên b?o trì s?n ph?m
var defaultGameName = "Heroes Alliance";
var defaultGamePriceLoc = 1;//0 là ng??i ??u tiên
var defaultQqName = "Q币";
var defaultQqPriceLoc = 0;//0 là ng??i ??u tiên

//Xác ??nh các bi?n toàn c?u
var gameSetArray;
var qqSetArray;

var curGameSt;
var curGameSti;

var cardForm = document.getElementById("card_form");

var gameSelect = document.getElementById("game_slt_game");
var gameSelectItem = document.getElementById("game_slt_pair");
var gameResult = document.getElementById("game_result");
var gameResultDetail = document.getElementById("game_result_detail");
var gamePayTypeDiv = document.getElementById("game_pay_type_div");

var qqSelect = document.getElementById("qq_slt_type");
var qqSelectItem = document.getElementById("qq_slt_pair");
var qqResult = document.getElementById("qq_result");
var qqResultDetail = document.getElementById("qq_result_detail");
var qqPayTypeDiv = document.getElementById("qq_pay_type_div");

var gamePriceDiv = document.getElementById("game_price_div");
var qqPriceDiv = document.getElementById("qq_price_div");

//var jdPrice = document.getElementById("jdPrice");
//var jdPrice2 = document.getElementById("jdPrice2");
var styleQQ = document.getElementById("styleQQ");
var styleGame = document.getElementById("styleGame");
function changeEverything(){
    if(qqSelect.value==null||qqSelectItem.value==null||qqSelectItem.value==""){
        //jdPrice2.innerHTML ="";
        if(styleQQ.checked){
            return;
        }
    }
    if(gameSelect.value==null||gameSelectItem.value==null||gameSelectItem.value==""){
        //jdPrice.innerHTML = "";
        if (styleGame.checked) {
            return;
        }
    }
    var stvArray  =null;
    if (qqSelect.value!=null&&qqSelectItem.value!=null&&qqSelectItem.value!="") {
        stvArray = getResultSkus(qqSelect.value, qqSelectItem.value, qqSetArray);
        if(stvArray==null){
            return;
        }
        if (stvArray.length == 1 || stvArray[0].stvPrice == stvArray[1].stvPrice) {
            //jdPrice2.innerHTML  = stvArray[0].stvPrice.substring(1, stvArray[0].stvPrice.length) +"nhân dân tệ";
        } else {
            var pricezc = stvArray[0].stvPrice.substring(1, stvArray[0].stvPrice.length);
            var pricekm = stvArray[1].stvPrice.substring(1, stvArray[1].stvPrice.length);
            if(pricezc>pricekm){
                //jdPrice2.innerHTML = pricekm + "-" + pricezc+"nhân dân tệ";
            }else{
                //jdPrice2.innerHTML = pricezc + "-" + pricekm +"nhân dân tệ";
            }
        }

		initSearch(2);
    }
    if(gameSelect.value!=null&&gameSelectItem.value!=null&&gameSelectItem.value!="") {
        stvArray = getResultSkus(gameSelect.value, gameSelectItem.value, gameSetArray);
        if(stvArray==null){
            return;
        }
        if (stvArray.length == 1 || stvArray[0].stvPrice == stvArray[1].stvPrice) {
            //jdPrice.innerHTML = stvArray[0].stvPrice.substring(1, stvArray[0].stvPrice.length)  +"nhân dân tệ";
        } else {
            var pricezc = stvArray[0].stvPrice.substring(1, stvArray[0].stvPrice.length);
            var pricekm = stvArray[1].stvPrice.substring(1, stvArray[1].stvPrice.length);
            if(pricezc>pricekm){
                //jdPrice.innerHTML = pricekm + "-" + pricezc+"nhân dân tệ";
            }else{
                //jdPrice.innerHTML = pricezc + "-" + pricekm +"nhân dân tệ";
            }
        }
		initSearch(1);
    }
}

function direct(type){
    cardForm.className="game form" ;
    if(type=="2"){
        document.getElementById("gametab-con-2").className="" ;
        document.getElementById("gametab-con-1").className="cardhide" ;
        document.getElementById("qq_result").className="cardhide" ;
        document.getElementById("game_result").className="cardhide" ;
    }else{
        document.getElementById("gametab-con-2").className="cardhide" ;
        document.getElementById("gametab-con-1").className="" ;
        document.getElementById("qq_result").className="cardhide" ;
        document.getElementById("game_result").className="cardhide" ;
    }
    this.check="true";
};

function StObj(stName, stId,stColor) {
    this.stName = stName;
    this.stColor = stColor;
    this.stId = stId;
    this.StiArray = new Array();
}
;

function StiObj(stiName, stiId) {
    this.stiName = stiName;
    this.stiId = stiId;
    this.StvArray = new Array();
}
;

function StvObj(stvPrice, stvType,skuId) {
    this.stvPrice = stvPrice;
    // 1 th? g?n ??n 2 th?ng
    this.stvType = stvType;
    this.skuId = skuId;
}
;

function initSelectArray(gameStr){
    var gameArray = gameStr.split("^^");

    var stArray = new Array();
    for (var i = 0; i < gameArray.length; i++) {
        if (gameArray[i].split("|").length != 3) {
            continue;
        }
        var gameParObj = gameArray[i].split("|");
        var stObj = new StObj();

        stObj.stName = gameParObj[0];
        stObj.stColor = gameParObj[1];

        var parArray = gameParObj[2].split(",");
        if (parArray.length == 0) {
            continue;
        }
        //10t?{zc-9.9-1000001}{km-9.8-1000002},20t?{zc-9.9-1000001}{km-9.8-1000002}
        for (var a = 0; a < parArray.length; a++) {
            var stiObj = new StiObj();
            var par = parArray[a].substring(0, parArray[a].indexOf("{"));
            stiObj.stiName = par;
            var parValue = parArray[a].substring(parArray[a].indexOf("{"));
            var reg_stv = /\{.*?\}/gm;
            var result = parValue.match(reg_stv);

            if (!result) {
                continue;
            } else {
                for (var v = 0; v < result.length; v++) {
                    var stvArray = result[v].substring(1, result[v].length - 1).split("-");
                    if (stvArray.length != 3) {
                        continue;
                    }
                    // 1 th? g?n ??n 2 th?ng
                    var rtIv = stvArray[0]=="km"?1:2;
                    var stvObj = new StvObj(stvArray[1],rtIv, stvArray[2]);
                    stiObj.StvArray[v] = stvObj;

                }
            }
            stObj.StiArray[a]=stiObj;
        }
        stArray[i]=stObj;
    }
    return stArray;
}


function initSelect() {

    //add StObj
    <!--game  start-->
 var gameStr ="C-siêu Dancer|black|10tệ{zc-￥9.05-1005542435},30tệ{zc-￥27.15-1005542296},50tệ{zc-￥45.25-1005542298},
 100tệ{zc-￥90.50-1005542437},^^C-Chibi|black|15 tệ{zc-￥13.92-1005826095}{km-￥13.88-1005826332},30 tệ{zc-￥27.84-1005826175},
 50 tệ{zc-￥46.40-1005826159}{km-￥46.25-1005826947},100 tệ{zc-￥92.80-1005826269}{km-￥92.50-1005827001},
 ^^C-Cross Fire|red|1t?{zc-￥0.93-1005392755},10t?{zc-￥9.25-1005392719},30t?{zc-￥27.75-1005392866},50t?{zc-￥46.25-1005392824},
 100t?{zc-￥92.50-1005392827},^^C-Huy?n tho?i c?a th? gi?i|red|10元{zc-￥9.55-1013124983},30 nhan dan t?{zc-￥28.65-1013125012},
 50元{zc-￥47.75-1013125188},^^D-地下城与勇士|black|1元{zc-￥0.93-1005392928},10元{zc-￥9.25-1005392932},30元{zc-￥27.75-1005392875},
 50元{zc-￥46.25-1005393024},100元{zc-￥92.50-1005393046},^^G-光宇一卡通|black|5元{km-￥4.70-1001602591},
 10元{zc-￥9.39-1012660305}{km-￥9.39-1001602626},30元{zc-￥28.17-1012661988}{km-￥28.17-1001602638},50元{zc-￥46.95-1012662045},
 100元{zc-￥93.90-1012662672}{km-￥93.90-1001602759},^^J-剑侠世界|black|50元{zc-￥47.50-1002034567},
 ^^J-街头篮球|black|50元{km-￥44.95-1005451831},100元{km-￥89.90-1005451777},^^J-金山一卡通|black|15元{km-￥14.40-1001534869},
 30元{km-￥28.80-1001534845},50元{km-￥48.00-1001535049},^^J-劲舞团|black|10元{zc-￥9.05-1005541478},30元{zc-￥27.15-1005541530},
 50元{zc-￥45.25-1005541701},100元{zc-￥90.50-1005541654},^^J-九城一卡通|black|10元{km-￥9.20-1012826153},30元{km-￥27.60-1012826501},
 50元{km-￥46.00-1012826317},100元{km-￥92.00-1012826324},^^J-九阴真经|red|10元{zc-￥9.40-1005294015},30元{zc-￥28.20-1005311297},
 50元{zc-￥47.00-1005294093},100元{zc-￥94.00-1005294094},^^J-巨人|black|10元{zc-￥9.55-1005435346},30元{zc-￥28.65-1005435436},
 50元{zc-￥47.75-1005435551},100元{zc-￥95.50-1005435668},200元{zc-￥191.00-1005435743},500元{zc-￥477.50-1005435823},
 ^^J-骏卡一卡通|black|10元{km-￥9.41-1006113926},15元{km-￥14.13-1006114064},50元{km-￥47.10-1006114099},100元{km-￥94.20-1006114283},
 500元{km-￥471.00-1006114388},^^K-空中网一卡通|black|10元{zc-￥9.40-1005495070},30元{zc-￥28.20-1005495074},50元{zc-￥47.00-1005495260},
 100元{zc-￥94.00-1005495192},^^K-口袋西游|black|15元{zc-￥13.92-1005830425}{km-￥13.88-1005834870},30元{zc-￥27.84-1005831296},
 50元{zc-￥46.40-1005831399}{km-￥46.25-1005835654},100元{zc-￥92.80-1005831494}{km-￥92.50-1005835684},
 ^^L-蓝港一卡通|black|10元{zc-￥9.05-1005543948},30元{zc-￥27.15-1005543957},50元{zc-￥45.25-1005544023},100元{zc-￥90.50-1005544024},
 500元{zc-￥452.50-1005544025},^^L-老K游戏|black|10元{km-￥9.35-1013124224},30元{km-￥28.05-1013124235},50元{km-￥46.75-1013124677},
 ^^L-龙之谷|red|1元{zc-￥0.93-1005215951},10元{zc-￥9.25-1005318608},30元{zc-￥27.75-1005318722},50元{zc-￥46.25-1005318811},
 100元{zc-￥92.50-1005318792},^^M-梦幻诛仙|black|15元{zc-￥13.92-1005841228}{km-￥13.88-1005850934},30元{zc-￥27.84-1005841357},
 50元{zc-￥46.40-1005841424}{km-￥46.25-1005851322},100元{zc-￥92.80-1005841962}{km-￥92.50-1005851363},
 ^^M-米米卡|black|10元{zc-￥8.55-1011257028},30元{zc-￥25.65-1011257065},50元{zc-￥42.75-1011257286},100元{zc-￥89.00-1011257682},
 ^^M-魔兽世界|red|15元{zc-￥14.40-1001541543}{km-￥14.40-1005436472},30元{zc-￥28.80-1011639735}{km-￥28.80-1011639017},
 ^^M-魔域|black|15元{zc-￥10.00-1005633215},60元{zc-￥49.99-1005633259},^^P-跑跑卡丁车|black|1元{zc-￥0.92-1001851770},
 ^^Q-QQ幻想世界|red|1元{zc-￥0.93-1005434067},10元{zc-￥9.30-1005434203},30元{zc-￥27.90-1005434386},50元{zc-￥46.50-1005434388},
 100元{zc-￥93.00-1005434316},^^Q-QQ游戏|black|1元{zc-￥0.93-1005392552},10元{zc-￥9.30-1005392539},30元{zc-￥27.90-1005392651},
 50元{zc-￥46.50-1005392652},100元{zc-￥93.00-1005392614},^^Q-麒麟一卡通|black|10元{zc-￥9.25-1012828565}{km-￥9.25-1012828945},
 30元{zc-￥27.75-1012828877}{km-￥27.75-1012829118},50元{zc-￥46.25-1012828623}{km-￥46.25-1012829470},
 100元{zc-￥92.50-1012829084}{km-￥92.50-1012829331},^^Q-起凡一卡通|black|10元{zc-￥9.20-1011235817}{km-￥9.20-1011236485},
 15元{zc-￥13.80-1011235438}{km-￥13.80-1011236503},30元{zc-￥27.60-1011236292}{km-￥27.60-1011236522},50元{zc-￥46.00-1011236295},
 100元{zc-￥92.00-1011236209}{km-￥92.00-1011236763},^^QQ飞车|black|5元{zc-￥4.65-1013604577},10元{zc-￥9.30-1013604061},
 15元{zc-￥13.95-1013604841},30元{zc-￥27.90-1013605346},50元{zc-￥46.50-1013605573},^^QQ炫舞|black|5元{zc-￥4.65-1013606569},
 10元{zc-￥9.30-1013606784},15元{zc-￥13.95-1013607114},30元{zc-￥27.90-1013607914},50元{zc-￥46.50-1013607772},
 ^^R-热血传奇|black|10元{zc-￥9.25-1013124208},30元{zc-￥27.75-1013124063},50元{zc-￥46.25-1013124252},100元{zc-￥92.50-1015948336},
 ^^R-热血江湖|black|10元{zc-￥9.40-1002372879},30元{zc-￥28.20-1002373007},50元{zc-￥47.00-1002372978},
 100元{zc-￥94.00-1002373160},^^R-人人豆|black|10元{zc-￥9.20-1011583726},15元{zc-￥13.80-1011583251},
 30元{zc-￥27.60-1011584099},50元{zc-￥46.00-1011583827},100元{zc-￥92.00-1011584001},200元{zc-￥184.00-1011584293},
 500元{zc-￥460.00-1011584177},^^R-人人游戏一卡通|black|10元{zc-￥9.20-1012222053}{km-￥9.20-1012224151},
 30元{zc-￥27.60-1012222212}{km-￥27.60-1012224174},50元{zc-￥46.00-1012222928}{km-￥46.00-1012224338},
 100元{zc-￥92.00-1012223117}{km-￥92.00-1012227090},^^S-神鬼传奇|black|15元{zc-￥13.92-1005836043}{km-￥13.88-1005836352},
 30元{zc-￥27.84-1005836179},50元{zc-￥46.40-1005836235}{km-￥46.25-1005836456},100元{zc-￥92.80-1005836276}{km-￥92.50-1005836641},
 ^^S-神魔大陆|black|15元{zc-￥13.92-1005840048}{km-￥13.88-1005891675},30元{zc-￥27.84-1005840121},
 50元{zc-￥46.40-1005840209}{km-￥46.25-1005891763},100元{zc-￥92.80-1005891673}{km-￥92.50-1005891678},
 ^^S-盛大一卡通|black|1元{zc-￥0.93-1005434476},10元{zc-￥9.25-1005434479},30元{zc-￥27.75-1005434577},
 50元{zc-￥46.25-1005434647},100元{zc-￥92.50-1005434732},^^S-搜狐畅游一卡通|black|40元{km-￥37.40-1005529879},
 ^^T-坦克世界|red|10元{zc-￥9.40-1013710517},30元{zc-￥28.20-1013710580},50元{zc-￥47.00-1013711075},100元{zc-￥94.00-1013710448},
 ^^T-天龙八部3|red|5元{zc-￥4.68-1005538938},10元{zc-￥9.35-1005539070},15元{zc-￥14.03-1005539348},30元{zc-￥28.05-1005539304},
 40元{km-￥37.40-1005538365},^^W-完美世界|red|15元{zc-￥13.92-1005765516}{km-￥13.88-1005822095},30元{zc-￥27.84-1005765717},
 50元{zc-￥46.40-1005765760}{km-￥46.25-1005822360},100元{zc-￥92.80-1005765782}{km-￥92.50-1005822421},
 ^^W-完美世界国际版|black|15元{zc-￥13.92-1005822488}{km-￥13.88-1005822498},30元{zc-￥27.84-1005822439},
 50元{zc-￥46.40-1005822506}{km-￥46.25-1005822560},100元{zc-￥92.80-1005822507}{km-￥92.50-1005822499},
 ^^W-完美一卡通|black|15元{zc-￥13.92-1005765401}{km-￥13.88-1005818641},30元{zc-￥27.84-1005765373},
 50元{zc-￥46.40-1005765449}{km-￥46.25-1005819255},100元{zc-￥92.80-1005765533}{km-￥92.50-1005765513},
 ^^W-问道|black|5元{km-￥4.70-1012860856},10元{zc-￥9.39-1001775590}{km-￥9.39-1012861805},30元{zc-￥28.17-1001775594}{km-￥28.17-1012861426},50元{zc-￥46.95-1012860996},100元{zc-￥93.90-1001775530}{km-￥93.90-1012863195},^^W-武林外传|black|15元{zc-￥13.92-1005828576}{km-￥13.88-1005829276},30元{zc-￥27.84-1005828766},50元{zc-￥46.40-1005828815}{km-￥46.25-1005829340},100元{zc-￥92.80-1005829050}{km-￥92.50-1005829369},^^X-降龙之剑|black|15元{zc-￥13.92-1005892170}{km-￥13.88-1005892454},30元{zc-￥27.84-1005892286},50元{zc-￥46.40-1005892381}{km-￥46.25-1005892508},100元{zc-￥92.80-1005892383}{km-￥92.50-1005892562},^^X-星际争霸2|red|20元{zc-￥19.20-1001675416},90元{zc-￥86.40-1005633195},^^Y-英雄联盟|red|10元{zc-￥9.30-1005500920},30元{zc-￥27.90-1005500945},50元{zc-￥46.50-1005501061},100元{zc-￥93.00-1005501154},^^Y-悠游一卡通|black|15元{zc-￥13.50-1012227686},50元{zc-￥45.00-1012227393},^^Y-御龙在天|black|5元{zc-￥4.65-1013607808},10元{zc-￥9.30-1013608052},15元{zc-￥13.95-1013608711},30元{zc-￥27.90-1013608743},50元{zc-￥46.50-1013608419},^^Z-战网一卡通|black|15元{zc-￥14.40-1005633093}{km-￥14.40-1001533512},30元{zc-￥28.80-1011639587}{km-￥28.80-1011639565},^^Z-征途|black|30元{zc-￥28.65-1001849082},50元{zc-￥47.75-1001849162},100元{zc-￥95.50-1001849175},200元{zc-￥191.00-1005385008},500元{zc-￥477.50-1005385081},^^Z-征途2|red|30元{zc-￥28.65-1005386570},50元{zc-￥47.75-1005386572},100元{zc-￥95.50-1005386540},200元{zc-￥191.00-1005386691},500元{zc-￥477.50-1005386666},^^Z-诛仙2|black|15元{zc-￥13.92-1005827040}{km-￥13.88-1005828329},30元{zc-￥27.84-1005827155},50元{zc-￥46.40-1005828129}{km-￥46.25-1005828476},100元{zc-￥92.80-1005828133}{km-￥92.50-1005828506},^^Z-诸神之怒|black|1元{zc-￥0.01-1011214879},11元{zc-￥11.00-1011216651},";
<!--game  end-->

    <!--qq  start-->
 var qqStr= "Q tiền tệ|red|1Nhan dan tệ (tùy chọn số lượng）{zc-￥0.93-1001544920},30 nhan dan tệ{km-￥27.90-1001544668},
 60 nhan dan tệ{km-￥55.80-1001544565},
 ^^QKênh tiền tệ nạp tiền 2|black|1Nhan dan tệ (tùy chọn số lượng）{zc-￥0.93-1011878902},
 ^^QQ bộ|black|10 tệ{zc-￥9.18-1011825037},^^QQ bộ|black|10 nhan dan tệ{zc-￥9.20-1001546229},
 ^^QQ bộ|black|10 nhan dan tệ{zc-￥9.20-1001545227},^^QQ bộ|black|20 nhan dan tệ{zc-￥18.70-1001546403},
 ^^QQ bộ|black|10 tệ{zc-￥9.20-1001545181},^^QQ màu vàng kim cương|black|10 tệ{zc-￥9.20-1001545110},
 ^^QQ thành viên|black|10 tệ{zc-￥9.20-1001544680},";
<!--qq  end-->

    gameSetArray = initSelectArray(gameStr);
    qqSetArray = initSelectArray(qqStr);

    //Kh?i t?o trò ch?i select
    for(var i=0;i<gameSetArray.length;i++){
        var stObj = gameSetArray[i];
        if(!stObj.StiArray.length>0){
            continue;
        }
        addItemToSelect(gameSelect, stObj.stName, stObj.stName,stObj.stColor);
    }

    //kh?i t?o QQ select
    for(var i=0;i<qqSetArray.length;i++){
        var stObj = qqSetArray[i];
        if(!stObj.StiArray.length>0){
            continue;
        }
        addItemToSelect(qqSelect, stObj.stName, stObj.stName,stObj.stColor);
    }
    changeEverything();
}


function initGamePair(obj){
    removeAllItem(gameSelectItem);
    initSetPair(gameSetArray,obj.value,gameSelectItem);
};


function initQqPair(obj){
    removeAllItem(qqSelectItem);
    initSetPair(qqSetArray,obj.value,qqSelectItem);
};

function getResultSkus(stValue,stiValue,setArray){
    for(var i=0;i<setArray.length;i++){
        var stObj = setArray[i];
        if(stObj.stName==stValue){
            for(var a=0; a<stObj.StiArray.length;a++){
                var stiObj = stObj.StiArray[a];
                if(stiObj==null){
                    continue;
                }
                if(stiObj.stiName==stiValue){
                    return stiObj.StvArray;
                }
            }
        }
    }
    return null;
}

function initSetPair(setArray,stName,sltObj){
    //Vui lòng ch?n giá tr? danh ngh?a
    //addItemToSelect(sltObj, "Vui lòng ch?n giá tr? danh ngh?a, "");
    for(var i=0;i<setArray.length;i++){
        var stObj = setArray[i];
        if(stObj.stName==stName){
            for(var a=0;a<stObj.StiArray.length;a++){
                var stiObj =stObj.StiArray[a];
                if(stiObj==null){
                    continue;
                }
                addItemToSelect(sltObj, stiObj.stiName, stiObj.stiName);
            }
            return;
        }
    }

}

function addItemToSelect(objSelect, objItemText, objItemValue,objColor) {
    var varItem = new Option(objItemText, objItemValue);
    if(objColor=="red"){
        varItem.className="hot";
    }
    //added by liqing--start
    //Trò ch?i th? ???c ch?n m?c ??nh
    if(objItemText.indexOf(defaultGameName) >= 0){
        setTimeout(function(){
            varItem.selected = true;
            for(var i=0;i<gameSetArray.length;i++){
                var stObj = gameSetArray[i];
                if(stObj.stName==objItemText){
                    for(var a=0;a<stObj.StiArray.length;a++){
                        var stiObj =stObj.StiArray[a];
                        addItemToSelect(gameSelectItem, stiObj.stiName, stiObj.stiName);
                    }
                    //Ch?n m?c ??nh m?t giá tr? danh ngh?a c?a
                    if(gameSelectItem.options.length>1){
                        gameSelectItem.options[defaultGamePriceLoc].selected = true;
                    }
                }
            }

        },1);


    }
    //QQVi?c l?a ch?n m?c ??nh
    if(objItemText==defaultQqName){
        setTimeout(function(){
            varItem.selected = true;
            for(var i=0;i<qqSetArray.length;i++){
                var stObj = qqSetArray[i];
                if(stObj.stName==objItemText){
                    for(var a=0;a<stObj.StiArray.length;a++){
                        var stiObj =stObj.StiArray[a];
                        addItemToSelect(qqSelectItem, stiObj.stiName, stiObj.stiName);
                    }
                    //Ch?n m?c ??nh m?t giá tr? danh ngh?a c?a
                    if(qqSelectItem.options.length>1){
                        qqSelectItem.options[defaultQqPriceLoc].selected = true;
                    }
                }
            }
        },1);


    }
    //--end

    objSelect.options.add(varItem);
    changeEverything();
}

function removeAllItem(objSelect) {
    var length = objSelect.options.length - 1;
    for(var i = length; i >= 0; i--){
        objSelect.options[i] = null;
    }
}


function getStypeValue(){

    var Obj = document.getElementsByName("stype");
    for(i=0;i<Obj.length;i++){if(Obj[i].checked){break}};
    if(i==Obj.length){return 1;}else{return Obj[i].value;}
}

var productPre = "http://card.jd.com/order/order_place.action?entry=1&skuId=";
function initResultItemHtml(stvArray, radioName){

    var strZc ="";
	var strKm ="";
	
    for(var i =0;i<stvArray.length;i++){
        var stvObj = stvArray[i]
		
        if(stvObj.stvType==1) {
			strKm = '<input type="radio" id="'+stvObj.skuId+'" name="'+radioName+'" class="radio" value="'+stvObj.skuId+'"';
            if(stvArray.length==1) {
                strKm = strKm+'" checked="checked" ';
				initPrice(radioName,stvObj.stvPrice);
            };
			
            strKm = strKm + ' onclick="modifyPrice(this)" price="'+stvObj.stvPrice+'"/>
			<label class="t-name" for="'+stvObj.skuId+'">Mua thẻ gần</label>';
        }
        if(stvObj.stvType==2){
            strZc = '<input type="radio" id="'+stvObj.skuId+'" name="'+radioName+'" class="radio" value="'+stvObj.skuId+'"
			checked="checked" onclick="modifyPrice(this)" price="'+stvObj.stvPrice+'"/>
			<label class="t-name" for="'+stvObj.skuId+'">trực tuyến Recharge</label>';
			initPrice(radioName,stvObj.stvPrice);
        }

    }
    return strZc+strKm;

}

function initPrice(payType, price){
	if(payType == "gamePayTypeRadio"){
		gamePriceDiv.innerHTML = price;
	} else if(payType == "qqPayTypeRadio") {
		qqPriceDiv.innerHTML = price;
	}
}

function modifyPrice(obj){
	if(obj.name == "gamePayTypeRadio"){
		gamePriceDiv.innerHTML = obj.attributes["price"].nodeValue;
	} else if(obj.name == "qqPayTypeRadio") {
		qqPriceDiv.innerHTML = obj.attributes["price"].nodeValue;
	}
}


function initSearch(type){

    if(type==2){
        if(qqSelect.value==""){
            alert("H?y ch?n danh m?c");
            return;
        }

        if(qqSelectItem.value==""){
            alert("Vui lòng chọn giá trị danh nghĩa");
            return
        }
/**
        cardForm.className="game form cardhide" ;
        qqResult.className="check-price" ;
        qqResult.getElementsByTagName("h4")[0].innerHTML=qqSelect.value+'<span>'+qqSelectItem.value+'</span>';

**/

        var stvArray = getResultSkus(qqSelect.value,qqSelectItem.value,qqSetArray);
        if(stvArray!=null){
            var htmlRet = initResultItemHtml(stvArray,"qqPayTypeRadio");
            qqPayTypeDiv.innerHTML = htmlRet;
        }
    }else{
        if(gameSelect.value==""){
            alert("Vui lòng ch?n trò ch?i");
            return;
        }

        if(gameSelectItem.value==""){
            alert("Vui lòng ch?n giá tr? danh ngh?a");
            return
        }

/**

        cardForm.className="game form cardhide" ;
        gameResult.className="check-price" ;
        gameResult.getElementsByTagName("h4")[0].innerHTML=gameSelect.value+'<span>'+gameSelectItem.value+'</span>';
**/


        var stvArray = getResultSkus(gameSelect.value,gameSelectItem.value,gameSetArray);
        if(stvArray!=null){
            var htmlRet = initResultItemHtml(stvArray,"gamePayTypeRadio");
            gamePayTypeDiv.innerHTML = htmlRet;

        }

    }


};

function goToBuy(payType){
    var Obj = document.getElementsByName(payType);
    var skuId = "";
    for(i=0;i<Obj.length;i++)
    {
        if(Obj[i].checked)
        {
            skuId=Obj[i].value;
            break;
        }
    }
    if(skuId.length>0)
    {
        window.open(productPre+skuId);
    }
}

initSelect();

</script>
<script type="text/javascript" src="hotwords.aspx"></script>
<script type="text/javascript" src="hotwords(1).aspx"></script>
<script type="text/javascript" src="hotwords(2).aspx"></script>


 </body></html>